@import url(http://fonts.googleapis.com/css?family=Lato:300italic);
html,
body {
  width: 100%;
  height: 100%;
}

body {
  background: #ee9ca7;
}

.hide{
	visibility: hidden;
}

#cake {
  display: block;
  position: relative;
  margin: -25em auto 0 auto;
}

#boyfriend,#lara{
	display: block;
	position: relative;
	width: 200px;
	height: 200px;
	margin: 1em auto;
}

 #book, #psp{
	display: inline-block;
	position: relative;
	width: 100px;
	height: 100px;
	margin: 1em auto;
}

#lara_archer{
	width: 300px;
	height: 200px;
	-vendor-animation-duration: 3s;
  -vendor-animation-delay: 2s;
  margin-top: 2em;
}

.final_section{
	height: 300px;
}
.final_section>div{
	margin: 0 auto;
	line-height: 5em;
	color: #8b6a60;
  font-family: 'Lato' , 'Microsoft YaHei', '微软雅黑';
  font-weight: 300;
  font-style: normal;
  text-align: center;
}
/* ============================================== Candle
*/
.velas {
  background: #ffffff;
  border-radius: 10px;
  position: absolute;
  top: 180px;
  left: 50%;
  margin-left: -2.5px;
  margin-top: -8.33333333px;
  width: 5px;
  height: 35px;
  -webkit-transform: translateY(-300px);
  -ms-transform: translateY(-300px);
  transform: translateY(-300px);
  -webkit-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-animation: in 500ms 6s ease-out forwards;
  animation: in 500ms 6s ease-out forwards;
}

.velas:after,
.velas:before {
  background: rgba(255, 0, 0, 0.4);
  content: "";
  position: absolute;
  width: 100%;
  height: 2.22222222px;
}

.velas:after {
  top: 25%;
  left: 0;
}

.velas:before {
  top: 45%;
  left: 0;
}

/* ============================================== Fire
*/
.fuego {
  border-radius: 100%;
  position: absolute;
  top: -20px;
  left: 50%;
  margin-left: -2.2px;
  width: 6.66666667px;
  height: 18px;
}

.fuego:nth-child(1) {
  -webkit-animation: fuego 2s 6.5s infinite;
  animation: fuego 2s 6.5s infinite;
}

.fuego:nth-child(2) {
  -webkit-animation: fuego 1.5s 6.5s infinite;
  animation: fuego 1.5s 6.5s infinite;
}

.fuego:nth-child(3) {
  -webkit-animation: fuego 1s 6.5s infinite;
  animation: fuego 1s 6.5s infinite;
}

.fuego:nth-child(4) {
  -webkit-animation: fuego 0.5s 6.5s infinite;
  animation: fuego 0.5s 6.5s infinite;
}

.fuego:nth-child(5) {
  -webkit-animation: fuego 0.2s 6.5s infinite;
  animation: fuego 0.2s 6.5s infinite;
}

/* ============================================== Animation Fire
*/
@-webkit-keyframes fuego {
  0%, 100% {
    background: rgba(254, 248, 97, 0.5);
    -webkit-box-shadow: 0 0 40px 10px rgba(248, 233, 209, 0.2);
    box-shadow: 0 0 40px 10px rgba(248, 233, 209, 0.2);
    -webkit-transform: translateY(0) scale(1);
    transform: translateY(0) scale(1);
  }

  50% {
    background: rgba(255, 50, 0, 0.1);
    -webkit-box-shadow: 0 0 40px 20px rgba(248, 233, 209, 0.2);
    box-shadow: 0 0 40px 20px rgba(248, 233, 209, 0.2);
    -webkit-transform: translateY(-20px) scale(0);
    transform: translateY(-20px) scale(0);
  }
}
@keyframes fuego {
  0%, 100% {
    background: rgba(254, 248, 97, 0.5);
    -webkit-box-shadow: 0 0 40px 10px rgba(248, 233, 209, 0.2);
    box-shadow: 0 0 40px 10px rgba(248, 233, 209, 0.2);
    -webkit-transform: translateY(0) scale(1);
    transform: translateY(0) scale(1);
  }

  50% {
    background: rgba(255, 50, 0, 0.1);
    -webkit-box-shadow: 0 0 40px 20px rgba(248, 233, 209, 0.2);
    box-shadow: 0 0 40px 20px rgba(248, 233, 209, 0.2);
    -webkit-transform: translateY(-20px) scale(0);
    transform: translateY(-20px) scale(0);
  }
}
@-webkit-keyframes in {
  to {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}
@keyframes in {
  to {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}
.text {
  color: #8b6a60;
  font-family: 'Lato' , 'Microsoft YaHei', '微软雅黑';
  font-weight: 300;
  font-style: normal;
  text-align: center;
}
.text h1 {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.picture{
  max-width: 100%;
}

.contain-upright{
  padding: 1em; 
  width: 30vw; 
  margin: 0 auto;
}

.horizontal{
  padding: 1em; 
  width: 50vw; 
  margin: 0 auto;
}

@media (orientation: landscape) {
  .contain-upright{
    padding: 1em; 
    width: 29vw; 
    margin: 0 auto;
  }
  
  .horizontal{
    padding: 1em; 
    width: 50vw; 
    margin: 0 auto;
  }
}

@media (orientation: portrait ) {
  .contain-upright{
    padding: 1em; 
    width: 80vw; 
    margin: 0 auto;
  }
  
  .horizontal{
    padding: 1em; 
    width: 80vw; 
    margin: 0 auto;
  }

  #firstpage{
    background-image: url('https://hbimg.b0.upaiyun.com/70aefa0093d9e42ae503745bfd279d12fea3c33645a50-fxOXxW_fw658');
  }
}